<?php 

	session_start();
	$dsn = "mysql:host=localhost;dbname=bookstore";
	$dbuser = "root";
	$dbpw = "Wyj961012";

	echo session_name()."=".session_id()."<br>";
	try {
		$dbh = new PDO($dsn, $dbuser, $dbpw);
		echo "Connected."."<br>";
	} catch (PDOException $e) {
		echo "ERROR:".$e -> getMessage();
	}